-- GENERATED SPELL FOR [Duskwing] --


function spell0_11897(pUnit, Event) --@Sonic Burst,Self--
pUnit:FullCastSpellOnTarget(8281,pUnit)
pUnit:RegisterEvent('Sorts_11897', 6287, 1)
end

function Sorts_11897(pUnit, Event)
local choix_sorts_11897 = math.random(0, 0)
if choix_sorts_11897 == 0 then
pUnit:RegisterEvent('spell0_11897', 1, 1)
end
end

function mob11897_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11897', math.random(1500, 3000), 1)
end

function mob11897_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11897_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11897_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11897, 1, 'mob11897_Action')
RegisterUnitEvent(11897, 2, 'mob11897_Leave')
RegisterUnitEvent(11897, 3, 'mob11897_Kill')
RegisterUnitEvent(11897, 4, 'mob11897_Die')
